package com.ssy.lingxi.pay.serviceimpl.assetAccount;

import com.ssy.lingxi.pay.entity.assetAccount.AccountStatusRecord;
import com.ssy.lingxi.pay.repository.assetAccount.AccountStatusRecordRepository;
import com.ssy.lingxi.pay.service.assetAccount.IAccountStatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 会员资金账户
 * @author jw.chen
 * @version 2.0.0
 * @date 2020/7/21
 */
@Service
public class AccountStatusServiceImpl implements IAccountStatusService {

    @Autowired
    private AccountStatusRecordRepository accountStatusRecordRepository;

    /**
     * 查询会员资金账户状态记录
     * @return
     */
    @Override
    public List<AccountStatusRecord> getAccountStatusRecord(Long memberAssetAccountId){
        return accountStatusRecordRepository.findByMemberAssetAccountIdOrderByCreateTimeAsc(memberAssetAccountId);
    }
}

